package com.lmt.feign;

import com.config.FeignConfiguration;
import com.lmt.entity.User;
import feign.Param;
import feign.RequestLine;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Date 2018/06/28
 *
 * @author MT-Lin
 */
@FeignClient(name = "provider", configuration = FeignConfiguration.class)
public interface ProviderFeignClient {

    @RequestLine("GET /findUserById?id={id}")
    User findUserById(@Param("id") String id);
}
